home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
HARDWARE
/
IICALARM
/
!iicAlarm
/
Tools
/
!AlarmShut
/
!Run
< prev
next >
Wrap
Text File
|
1994-05-04
|
697b
|
20 lines
| !Run-File for !AlarmShut 0.30
| Shutdown Computer on user request.
| Difference to !AlarmQuit is that we use the Shutdown
| function of the desktop to cancel all Applikations with
| user query if some data is unsaved.
Set AlarmShut$Dir <Obey$Dir>
| If the Alarmsystem is active, we set the next Alarm.
IF "<AlarmMode>" <> "" THEN Run <AlarmExt$Dir>.AlarmSet
| If this was an automatic start then we may switch off
| without Shutting down the computer !
IF "<AlarmMode>" = "1" THEN Run <AlarmExt$Dir>.SwitchOff
| If we are in User-mode, we Shut down gently.
| But only if we are in the desktop.
IF "<Alarm$Desktop>" = "NO" THEN Run <AlarmExt$Dir>.SwitchOff
WimpTask <AlarmShut$Dir>.!RunImage